<template>
	<view v-if="show" class="unio2o-toutiao-comment">
		<view @click="cancel()" class="bg"></view>
		<view class="comment-form bg-default pd30">
			<textarea class="textarea" placeholder-style="color:#CCCCCC" placeholder="输入您要评价的内容"/>
			<view class="mt30 flex end">
				<view class="comment-btn flex alcenter center ft16 ftw400 text-w">发布</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			show:{
				type:Boolean,
				default:false,
			}
		},
		data(){
			return {
				
			}
		},methods:{
			cancel(){
				this.$emit('compile',false);
			},
			comment(){
				this.$emit('compile',true);
			}
		}
	}
</script>

<style>
	.unio2o-toutiao-comment .bg{
		position: fixed;
		z-index: 11;
		width: 100%;
		height: 100vh;
		left: 0;
		top: 0;
		background: rgba(0,0,0,.3);
	}
	.comment-form{
		position: fixed;
		z-index: 12;
		width: 100%;
		height: 464rpx;
		left: 0;
		bottom: 0;
	}
	.comment-form .textarea{
		width: 100%;
		background: #FFFFFF;
		height: 240rpx;
	}
	.comment-btn{
		width:188rpx;
		height:72rpx;
		background:#FF6D00;
		box-shadow:0rpx 8rpx 16rpx 0rpx rgba(255,109,0,0.3);
		border-radius:36rpx;
		padding: 0rpx;
	}
</style>